{% extends "account/base.html" %}

{% block title %}
login-default of django
{% endblock %}

{% block content %}
<div class="row">
 <div class="col-xs-6">
  <h1>Login</h1>
{%if form.errors %}
<p>Your username and password didn't match.Please try again.</p>
{% else %}
<p>Input your username and password,please.</p>
{% endif %}
<form class="form-horizontal" action="{% url "account:login" %}" method="post">{% csrf_token %}
	<div class="form-group">
		<label for="{{form.username.id_for_label }}" class="col-sm-2 control-label">Username</label>
		<div class="col-sm-10">{{ form.username }}</div>
	</div>
	<div class="form-group">
		<label for="{{ form.password.id_for_label }}" class="col-sm-2 control-label">Password</label></label>
		<div class="col-sm-10">{{ form.password }}</div>
	</div>
	<div class="form-group">
     <div class="col-sm-offset-2 col-sm-10">
      <p><input class="btn btn-default" type="submit" value="Login"></p>
     </div>
  	</div>

</form>
	<div>
	  <p><a href="{% url 'password_reset_recover' %}">RESET PASSWORD</a></p>
	</div>
 </div>
 <div class="col-xs-6" style="margin-top:70px;">
   <p>If you don't have an account,register here,please.</p>
   <p><a href="{% url 'account:register' %}" class="btn btn-default btn-lg" role="button">regiser</a></p>
 </div>
</div>
{% endblock %}
